﻿<%@ Page Language="C#" MasterPageFile="~/Admin/Admin.master" ValidateRequest="false" AutoEventWireup="true" CodeFile="adm_surveycomment.aspx.cs" Inherits="adm_surveycomment" Title="Untitled Page" %>
<%@ Register src="UserControls/AdminMenuLeft.ascx" tagname="AdminMenuLeft" tagprefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">
    <script language="javascript" type="text/javascript">
        function CheckAll()
        {
            arr=document.getElementById('tblchk').getElementsByTagName("input");
            for (i=0;i<arr.length;i++)
            {
                arr[i].checked=true;
            }
        }
        function UnCheckAll()
        {
            arr=document.getElementById('tblchk').getElementsByTagName("input");
            for (i=0;i<arr.length;i++)
            {
                arr[i].checked=false;
            }
        }
    </script>
	<div class="adm-wrap">
		<h3>Surveys Comments</h3>
		<div class="country max" style="border:0px">
			<p class="hi"><asp:Label ID="lblGretting" Text="Hi admin Khuong luu" runat="server"></asp:Label></p>
			<p class="hi"><asp:Label ID="lblAlert" runat="server" style="border:solid 1px Gray;padding:3px" Text="aaaaaaaaa" Visible="false"></asp:Label></p>
            <p>Question:<br /><br /><asp:Label ID="lblQuestion" runat="server"></asp:Label></p>
			<p>&nbsp;</p>
			<p>&nbsp;</p>
			<p>
			    <input class="submitbutton" name="chkAll" value="Check All" type="button" onclick="CheckAll()" style="text-align:center" />	
			    <input class="submitbutton" name="uchkAll" value="UnCheck All" type="button" onclick="UnCheckAll()" style="text-align:center" /> 
			    <asp:Button CssClass="submitbutton" ID="btnDelete" Text="Delete" runat="server" OnClientClick="return confirm('Are you sure want to delete?')"
                    onclick="btnDelete_Click"/>
			</p>
            <hr/>
            <table width="75%" border="0" cellspacing="0" cellpadding="0" id="tblchk">
                <tr>
	                <td width="3%">&nbsp;</td>
	                <td width="54%">
	                    <asp:Literal ID="ltrTotalpage" runat="server"></asp:Literal>
                    <td width="43%">
                        <asp:Literal ID="ltrPaging" runat="server"></asp:Literal>
	                </td>
                </tr>
                <tr class="first">
	                <td></td>
                    <td>Comment</td>
                    <td>Date</td>   
                </tr>
                <asp:Repeater ID="rptSurvey" runat="server">
                    <ItemTemplate>
                        <tr class="second">
	                        <td width="3%"><asp:CheckBox runat="server" CssClass="bogo" Id="chk" Checked="false"/></td>
                            <td><%# Eval("Comment")%></td>
                            <td><%# Eval("DateCreated") %></td>
                            <asp:Label ID="lblid" runat="server" Visible=false Text='<%# Eval("ID") %>'></asp:Label>
                        </tr>
                    </ItemTemplate>
                    <AlternatingItemTemplate>
                        <tr class="second_se">
	                        <td width="3%"><asp:CheckBox runat="server" CssClass="bogo" Id="chk" Checked="false"/></td>
                            <td><%# Eval("Comment")%></td>
                            <td><%# Eval("DateCreated") %></td>
                            <asp:Label ID="lblid" runat="server" Visible=false Text='<%# Eval("ID") %>'></asp:Label>
                        </tr>
                    </AlternatingItemTemplate>
                </asp:Repeater>
            </table>
		</div>
	</div>
	<div class="clear"></div>
  <!--//Content-->
</asp:Content>

